<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{{ stu_l }}
<table border="1px">
    <tr>
        <td>name</td>
        <td>age</td>
        <td>gender</td>
    </tr>
    {% for stu in stu_l %}
        <tr>
            <td>{{ stu.name }}</td>
            <td>{{ stu.get("age") }}</td>
            {% if stu["gender"] == "中" %}
                <td>男</td>
            {% else %}
                <td>{{ stu["gender"] }}</td>
            {% endif %}
        </tr>
    {% endfor %}
</table>
</body>
</html>